<?php

namespace app\common\model\shopro;
use think\Model;
class UserNormalPrizeLogModel extends Model
{
    protected $name = 'user_normal_prize_log';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    public function prize()
    {
        return $this->belongsTo('app\admin\model\Prize', 'prize_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
